<!DOCTYPE html>
<html>
<head>
    <title>单据子表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:depotitem:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:depotitem:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:depotitem:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">表头Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.headerid" placeholder="表头Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">材料Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.materialid" placeholder="材料Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品计量单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.munit" placeholder="商品计量单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.opernumber" placeholder="数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">基础数量，如kg、瓶</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.basicnumber" placeholder="基础数量，如kg、瓶"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.unitprice" placeholder="单价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">含税单价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.taxunitprice" placeholder="含税单价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.allprice" placeholder="金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.remark" placeholder="描述"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">图片</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.img" placeholder="图片"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">运杂费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.incidentals" placeholder="运杂费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">仓库ID（库存是统计出来的）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.depotid" placeholder="仓库ID（库存是统计出来的）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">调拨时，对方仓库Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.anotherdepotid" placeholder="调拨时，对方仓库Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">税率</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.taxrate" placeholder="税率"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">税额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.taxmoney" placeholder="税额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">价税合计</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.taxlastmoney" placeholder="价税合计"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">自定义字段1-品名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.otherfield1" placeholder="自定义字段1-品名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">自定义字段2-型号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.otherfield2" placeholder="自定义字段2-型号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">自定义字段3-制造商</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.otherfield3" placeholder="自定义字段3-制造商"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">自定义字段4</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.otherfield4" placeholder="自定义字段4"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">自定义字段5</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.otherfield5" placeholder="自定义字段5"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品类型</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depotitem.mtype" placeholder="商品类型"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/depotitem.js?_${.now?long}"></script>
</body>
</html>